﻿@{
    ViewBag.Title = "Home_Search";
   
}

		<!-- Product Details Table -->
		<!-- Loop starts here for selecting each product in current order -->
		<div class="search-product-placement">
			<div class="heading2">
				<h1 class="seach-found">
					We found  Products for
				</h1>
			</div>
			<xsl:choose>
				<xsl:when test="contains($parent,'price')=false and count(root/removes/remove[contains(@name,'price')])= 0">
					<xsl:for-each select="root/facets/facet[count(bucket)>1]"  >
						<xsl:if test="position()&lt; 7">
							<div class="search-small-box">
								<h3>
									<xsl:value-of select="@displayname" />
								</h3>
								<xsl:for-each select="bucket ">
									<xsl:sort select="@sort" data-type="number"/>
									<a class="search-box-links" >
										<xsl:attribute name="href">
											<xsl:value-of select="$url" />/<xsl:value-of select="@fname" /><xsl:text>.html</xsl:text>
										</xsl:attribute>
										<xsl:value-of select="@value" />
										
									</a>
								</xsl:for-each>
							</div>
						</xsl:if>
					</xsl:for-each>
				</xsl:when>
				<xsl:otherwise>
					<xsl:for-each select="root/facets/facet[count(bucket)>1 and contains($parent,@displayname)=false ]"  >
						<xsl:if test="position()&lt;8">
							<div class="search-small-box">
								<h3>
									<xsl:value-of select="@displayname" />
								</h3>
								<xsl:for-each select="bucket ">
									<a class="search-box-links" >
										<xsl:attribute name="href">
											<xsl:value-of select="$url" />/<xsl:value-of select="@fname" /><xsl:text>.html</xsl:text>
										</xsl:attribute>
										<xsl:value-of select="@value" />
										
									</a>
								</xsl:for-each>
							</div>
						</xsl:if>
					</xsl:for-each>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="count(root/removes/remove[contains(@name,'price')])= 0">
				<div class="search-small-box">
					<h3>Price range</h3>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=0:500</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 0 - 500</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=500:1000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 500 - 1000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=1000:2000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 1000 - 2000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=2000:3000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 2000 - 3000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=3000:5000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 3000 - 5000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=5000:10000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 5000 - 10000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=10000:15000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 10000 - 15000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=15000:20000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 15000 - 20000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=20000:30000</xsl:text>
						</xsl:attribute>
						<xsl:text>Rs. 20000 - 30000</xsl:text>
					</a>
					<a class="search-box-links" >
						<xsl:attribute name="href">
							<xsl:value-of select="$url" />
							<xsl:if test="$url='/online-shopping'">
								<xsl:text>/buy-india</xsl:text>
							</xsl:if>
							<xsl:text>.html?price=30000:0</xsl:text>
						</xsl:attribute>
						<xsl:text>Above Rs. 30000</xsl:text>
					</a>
				</div>
			</xsl:if>
		</div>
		<div>
			<div class="your-selection" style="float:left">
				<div class="selection">
					<span>Your Selection</span>
				</div>
				<span class="selection-product">
					<xsl:for-each select="root/removes/remove"  >
						<a>
							<xsl:attribute name="href">
								<xsl:value-of select="@url" />
							</xsl:attribute>
							<img style="margin-left:5px;margin-right:5px;" src="http://www.yebhi.com/images/restrictBy.gif" height="10" border="0" />
							<xsl:value-of select="@name" />
						</a>
					</xsl:for-each>
				</span>
				<br />
			</div>
		</div>
		<div class="sorting">
			<div class="sorting-by">
				Sort by :
				<xsl:for-each select="root/sortby/sort"  >
					<a>
						<xsl:attribute name="href">
							<xsl:value-of select="@href" />
						</xsl:attribute>
						<xsl:text> | </xsl:text>
						<xsl:value-of select="@value" />
					</a>
				</xsl:for-each>


			</div>
			<div class="pagination">
				<xsl:for-each select="root/pages/page"  >
					<a>
						<xsl:attribute name="href">
							<xsl:value-of select="@href" />
						</xsl:attribute>
						<span>
							<xsl:attribute name="class">
								<xsl:value-of select="@class" />
							</xsl:attribute>
							<xsl:value-of select="@value" />
						</span>
					</a>
				</xsl:for-each>
			</div>
		</div>
		<div style="width:960px;float:left;border:1px solid #d9d9d6;margin-top:305px;">
			<div style="width:783px;float:left;">
			
			<xsl:for-each select="root/Attributes/Attribute">
							<xsl:if test="not(normalize-space(BNRURL)='')">
								<div>
									<img border="0">
											<xsl:attribute name="src">http://im1.ybndc.com/upload/brandlogo/<xsl:value-of select="substring-after(BNRURL,'brandlogo\')" /></xsl:attribute>										
									</img>
								</div>
							</xsl:if>
			</xsl:for-each>
			
				<div>
					<div class="search-result">
						<xsl:for-each select="root/items/Item">
							<div class="search-item" style="height:300px;">
								<xsl:choose>
									<xsl:when test="discount &gt; 0">
										<div class="offer-container">
											<div style="display: inline">
												<div class="offer">
													<xsl:value-of select="round(discount)" />%
													Off
												</div>
											</div>
										</div>
									</xsl:when>
									<xsl:otherwise>
										<div class="offer-container">
											<div style="display: none">
												<div class="offer">
													<xsl:value-of select="round(discount)" />%
													Off
												</div>
											</div>
										</div>
									</xsl:otherwise>
								</xsl:choose>
								<div class="product-image ToolText" >
									<xsl:choose>
										<xsl:when test="contains(sizevalue,'Shown')">
											<xsl:attribute name="onMouseOver">javascript:this.className='product-image';</xsl:attribute>
											<xsl:attribute name="onMouseOut">javascript:this.className='product-image';</xsl:attribute>
										</xsl:when>
										<xsl:otherwise>
											<xsl:attribute name="onMouseOver">javascript:this.className='product-image ToolTextHover';</xsl:attribute>
											<xsl:attribute name="onMouseOut">javascript:this.className='product-image ToolText';</xsl:attribute>
										</xsl:otherwise>
									</xsl:choose>
									<a class="gotopage">
										<xsl:attribute name="href">
											<xsl:text>/</xsl:text>
											<xsl:value-of select="produrl" />
										</xsl:attribute>
										<img class="lazy" >
											<xsl:attribute name="src">
												<xsl:value-of select="thumb1" />
											</xsl:attribute>
											<xsl:attribute name="original">
												<xsl:value-of select="thumb1" />
											</xsl:attribute>
											<xsl:attribute name="alt">
												<xsl:value-of select="translate( substring-before(substring-after(produrl,'/PD/'),'.htm'),'-',' ')" />
											</xsl:attribute>
											<xsl:attribute name="title">
												<xsl:value-of select="translate( substring-before(substring-after(produrl,'/PD/'),'.htm'),'-',' ')" />
											</xsl:attribute>
										</img>
									</a>
									<xsl:choose>
										<xsl:when test="contains(sizevalue,'Shown')">
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<span>
												<b>Available Sizes</b>
												<br />
												<xsl:value-of disable-output-escaping="yes" select="sizevalue" />
											</span>
										</xsl:otherwise>
									</xsl:choose>
								</div>
								<div class="product-content">
									<a class="gotopage">
										<xsl:attribute name="href">
											<xsl:text>/</xsl:text>
											<xsl:value-of select="produrl" />
										</xsl:attribute>
										<h3 class="product-content" style="color:#106B9F;font-weight:normal;">
											<xsl:value-of select="translate( substring-before(substring-after(produrl,'/PD/'),'.htm'),'-',' ')" />
										</h3>
									</a>
								</div>
								<xsl:choose>
									<xsl:when test="discount &gt; 0">
										<div class="mrp-sale">
											<span class="current-price">
												INR&#160; <xsl:value-of select="round(mrp)" />
											</span>
										</div>
										<div style="display: inline;">
											<span class="boxmatterblack">
												INR&#160;<xsl:value-of select="round(customerprice)" />
											</span>
											<br />
										</div>
									</xsl:when>
									<xsl:otherwise>
										<div style="display: inline;">
											<span class="boxmatterblack">
												INR&#160;<xsl:value-of select="round(customerprice)" />
											</span>
											<br />
										</div>
									</xsl:otherwise>
								</xsl:choose>
								<div class="Search-View-detail">
									<a class="gotopage" >
										<xsl:attribute name="href">
											<xsl:text>/</xsl:text>
											<xsl:value-of select="produrl" />
										</xsl:attribute>
										View Detail
									</a>
								</div>
							</div>
						</xsl:for-each>
					</div>
				</div>
			</div>
			<div style ="width:170px;float:left;">
				<div class="strandsRecs" tpl="ctgy_8">
					<xsl:attribute name="dfilter">
						<xsl:value-of   select="root/strand/strandvar" />
					</xsl:attribute>
					<xsl:text> </xsl:text>
				</div>

				<div class="strandsRecs" tpl="ctgy_9">
					<xsl:attribute name="dfilter">
						<xsl:value-of   select="root/strand/strandvar" />
					</xsl:attribute>
					<xsl:text> </xsl:text>
				</div>

			</div>
		</div>
		<div class="sorting-bottom">
			<div class="sorting-by">
				Sort by :
				<xsl:for-each select="root/sortby/sort"  >
					<a>
						<xsl:attribute name="href">
							<xsl:value-of select="@href" />
						</xsl:attribute>
						<xsl:text> | </xsl:text>
						<xsl:value-of select="@value" />
					</a>
				</xsl:for-each>
			</div>
			<div class="pagination">
				<xsl:for-each select="root/pages/page"  >
					<a>
						<xsl:attribute name="href">
							<xsl:value-of select="@href" />
						</xsl:attribute>
						<xsl:value-of select="@value" />
					</a>
				</xsl:for-each>
			</div>
		</div>
		<!-- Attribute Details Starts -->
		<div class="products-panal">
			<span>
				<a href="/Specially-For-You/content.aspx">(View All)</a>
			</span>
			<h3>You Were Last Looking At</h3>
		</div>
		<div class="strandsRecs" style="float:left;" tpl="home_44" item="">
			<xsl:text> </xsl:text>
		</div>
		<div style="width:960px;float:left;">
			

			<xsl:for-each select="root/Attributes/Attribute">
				<xsl:if test="not(normalize-space(Description)='')">
					<div>
						<h2 class="seach-found">
							About
							<xsl:value-of  disable-output-escaping="yes"  select="name" />
						</h2>
						<hr />
						<p style="text-align:justify; margin: 0px 10px 0px 9px;">
							<xsl:value-of  disable-output-escaping="yes"  select="Description" />
						</p>
					</div>
				</xsl:if>
			</xsl:for-each>
			<hr />
			<h3 style="margin: 9px 10px 9px 9px;">
				You are currently looking at <a style="color:#E86403" href="/online-shopping/buy-india.html">Online Shopping</a>
				<xsl:text> > </xsl:text>
				<xsl:for-each select="root/Attributes/Attribute">
					<a style="color:#E86403" >
						<xsl:attribute name="href">
							<xsl:value-of select="attURL" />
						</xsl:attribute>
						<xsl:value-of select="name" />
					</a>
					<xsl:if test="count != $totcount">
						<xsl:text> > </xsl:text>
					</xsl:if>
				</xsl:for-each>
			</h3>
		</div>
		<!-- Attribute Details ends -->
